var Mock = require('mockjs');

exports.response = function(req, res) {
  return Mock.mock({
    "msg": "OK",
    "code": 0,
    "data": {
      "trader_detail": {
        "trader": "54701",
        "allTimePnl": "23923.23",
        "tradeCount": "182",
        "reapProfit": "90",
        "winRatio": "50.0%",
        "averageReturnRate": "0.23",
        "UtilizationRatio": "18%",
        "tradeTotalMarketValue": "3489388.4",
        "marketValueYield": "2.323%",
        "profitYield": "2.323%",
        "lossYield": "2.323%",
        "profitLossRatio": "2.323%",
        "maximumLoss": "32823.239",
        "groupid": "547",
        "holdsNum": "23",
        "beginCash": "23634.4",
        "dayPnl": "3400",
        "minNegPnl": "476",
        "historyDays": "12",
        "streak": "5",
        "winningDayRatio": "67.3%"
      },
      "stock_detail": [
        {
          "symbol": "000333.SH",
          "initialQuantity": "3000",
          "buy": "1400",
          "sell": "0",
          "theNetBuying": "0",
          "tradeMargin": "0",
          "utilizationRatio": "0",
          "tradeCount": "4",
          "winRatio": "100%",
          "closeMarketValue": "322354",
          "pnl": "3434",
          "Yield": "0.7%"
        }, {
          "symbol": "000332.SH",
          "initialQuantity": "3000",
          "buy": "1400",
          "sell": "0",
          "theNetBuying": "0",
          "tradeMargin": "0",
          "utilizationRatio": "0",
          "tradeCount": "4",
          "winRatio": "100%",
          "closeMarketValue": "322354",
          "pnl": "3434",
          "Yield": "0.7%"
        }
      ],
      "stock_pnl_stat": {
          "loss": [
            {
              "stockCode":"000568.SZ",
              "stockName":null,
              "pnl":200,
              "ratio":1,
            },
          ],
          "profit": [
            {
              "stockCode":"000858.SZ",
              "stockName":null,
              "pnl":4597,
              "ratio":0.4597,
            },
            {
              "stockCode":"000651.SZ",
              "stockName":null,
              "pnl":918,
              "ratio":0.0918,
            },
            {
              "stockCode":"601318.SH",
              "stockName":null,
              "pnl":4052,
              "ratio":0.4052,
            },
            {
              "stockCode":"002624.SZ",
              "stockName":null,
              "pnl":434,
              "ratio":0.0434,
            },
          ]
      }
    }
  })
}
